{extend name="Public:base"/}

{block name="main"}
<div class="box-info">
    <div class="table-toolbar">
        <a title="更新标签" class="btn btn-primary" href="{:U('Tags/rebuild')}">更新标签</a>&nbsp;
    </div>

    <div class="row table-container">
        <div class="col-md-12">
            <form name="myform" action="" method="post">
                <table class="table table-hover table-condensed table-bordered">
                    <thead>
                    <tr>
                        <th>排序</th>
                        <th>标签名称</th>
                        <th>别名</th>
                        <th>数量</th>
                    </tr>
                    </thead>
                    <tbody>
                    {empty name="list"}
                    <tr class="table-data-empty">
                        <td class="text-center empty-info" colspan="8">
                            <i class="fa fa-database"></i> 暂无数据<br>
                        </td>
                    </tr>
                    {else/}
                    {volist name="list" id="vo" key="k"}
                    <tr>
                        <td width="40" align='center'>
                            <input name='listorders[{$vo.id}]' type='text' value='{$vo.listorder}' class="form-control input-c"></td>
                        <td>{$vo['name']}</td>
                        <td>{$vo['slug']}</td>
                        <td>{$vo['num']}</td>
                    </tr>
                    {/volist}
                    {/empty}
                    </tbody>
                </table>
            </form>

            <div class="pagination pull-right">{$page}</div>
        </div>
    </div>
</div>
{/block}